﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;

namespace FileUpManage
{
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name = "TRY", Namespace = "http://tempuri.org/")]
    public class WebUpCilent : SoapHttpClientProtocol
    {
        public WebUpCilent()
        {
            this.Url = "http://218.6.160.126:9888/Wbserver/UpFile.asmx";
            //this.Url = "http://192.168.137.80/Wbserver/UpFile.asmx";
        }


        [SoapDocumentMethod("http://tempuri.org/UpFileRsout")]
        public bool UpFileRsout(string[] paraStr, byte[] bsThumbnail)
        {
            object[] results = base.Invoke("UpFileRsout", new object[] { paraStr, bsThumbnail });
            return (bool)results[0];
        }

        [SoapDocumentMethod("http://tempuri.org/InsertFile")]
        public bool InsertFile(string fileguid, int branchID, bool ishead)
        {
            object[] results = base.Invoke("InsertFile", new object[] { fileguid, branchID, ishead });
            return (bool)results[0];
        }
    }
}
